<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航</title>
    <link rel="stylesheet" href="nav.css"/>
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="nav.js"></script>
</head>
<body>
<div id="nav"></div>
<script type="text/javascript">
    ddsmoothmenu.setHtml([
        {navName:'wa',url:'http://www.baidu.com/',navList:[
            {name: '12',url:'#'},
            {name: '12',url:'#'},
            {name: '12',url:'#'}
        ]},
        {navName:'sa',url:'http://www.baidu.com/',navList:[]},
        {navName:'fs',url:'http://www.baidu.com/'}
    ],'nav'); 
    ddsmoothmenu.init({ 
        mainmenuid: "nav", //menu DIV id
        orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'nav-nav'//className 必须为 'nav-nav'
    });
</script>
</body>
</html>